<template>
    <transition name="fade-transform" mode="out-in" v-if="$route.meta.keepAlive">
        <keep-alive>
            <router-view />
        </keep-alive>
    </transition>
    <transition name="fade-transform" mode="out-in" v-else>
        <router-view />
    </transition>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
/* fade-transform */
.fade-transform-leave-active,
.fade-transform-enter-active {
    transition: all 0.5s;
}

.fade-transform-enter {
    opacity: 0.5;
    transform: translateX(-30px);
}

.fade-transform-leave-to {
    opacity: 0;
    transform: translateX(30px);
}
</style>